Skip to content

refactor: code review cleanup and bug fixes - #350

Merged
pengzhendong merged 1 commit into
masterfrom
fix/review-cleanup
Jun 9, 2026
Merged

refactor: code review cleanup and bug fixes#350
pengzhendong merged 1 commit into
masterfrom
fix/review-cleanup

Conversation

@pengzhendong

@pengzhendong pengzhendong commented Jun 9, 2026

Copy link
Copy Markdown
Member

Summary

Code review findings from a full-repo review:

Bug fixes:

  • Fix 亿级 reading: 100001000一亿零一千 (was 一亿一千, missing 零)
  • Support full-width comma in Measure strip_comma

Performance:

  • Share rule instances in Chinese ITN verbalizer (test suite -15%, 92s → 78s)
  • Don't create Transliteration() when transliterate=False in Japanese TN
  • Share Whitelist instance in Chinese TN normalizer

Code quality:

  • Fix import ordering in processor.py (imports were placed after logger setup)

Test plan

  • All 1400 unit tests pass
  • CI passes

- Fix import ordering in processor.py
- Fix 亿级 bug: 100001000 => 一亿零一千 (was 一亿一千)
- Share rule instances in Chinese ITN verbalizer (build time -15%)
- Don't create Transliteration when transliterate=False in Japanese TN
- Share Whitelist instance in Chinese TN normalizer
- Support full-width comma in Measure strip_comma
@pengzhendong
pengzhendong merged commit 55207ec into master Jun 9, 2026
1 check passed
@pengzhendong
pengzhendong deleted the fix/review-cleanup branch June 9, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant